package com.sneakxy.mybase4j.platform.service;

import java.io.IOException;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.csource.common.MyException;
import org.springframework.web.multipart.MultipartFile;

import com.sneakxy.mybase4j.base.service.IBaseService;
import com.sneakxy.mybase4j.platform.beans.UEditor;

/**
 * 
 * @author 潜行的青衣
 * @see
 */
public interface IUEditorService extends IBaseService<UEditor, String> {

	public Map<String, Object> findAll(String type, String account, int start, int size);
	
	public UEditor findOne(String id, String type);
	
	public UEditor uploadAndSave(HttpServletRequest request, MultipartFile file, String type) throws IOException, MyException; 
	
	public UEditor uploadAndSave(HttpServletRequest request, String base64, String filename) throws IOException, MyException;
	
	public void download(HttpServletResponse response, String id, String type) throws IOException, MyException;
	
}
